package com.bolong.gmgc.bean.record;

import java.io.Serializable;

public class CarMonth implements Serializable {
    /**
     * 月卡车辆中间表
     *
     * @mbg.generated
     */
    private String id;

    /**
     * 车牌号
     *
     * @mbg.generated
     */
    private String carNumber;

    /**
     * 月卡id
     *
     * @mbg.generated
     */
    private String monthcardId;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getMonthcardId() {
        return monthcardId;
    }

    public void setMonthcardId(String monthcardId) {
        this.monthcardId = monthcardId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", carNumber=").append(carNumber);
        sb.append(", monthcardId=").append(monthcardId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CarMonth other = (CarMonth) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCarNumber() == null ? other.getCarNumber() == null : this.getCarNumber().equals(other.getCarNumber()))
            && (this.getMonthcardId() == null ? other.getMonthcardId() == null : this.getMonthcardId().equals(other.getMonthcardId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCarNumber() == null) ? 0 : getCarNumber().hashCode());
        result = prime * result + ((getMonthcardId() == null) ? 0 : getMonthcardId().hashCode());
        return result;
    }
}